package com.chat.entity;

/**
 * 数据包行为
 */
public enum ServerAction {
    REGISTER,
    LOGIN,

    //user服务
    GET_USER,
    GET_USERS,
    GET_USERS_BY_ROOMID,
    UPDATE_USER_INFO,

    //message服务
    SEND_MESSAGE_FROM_ROOM,
    GET_MESSAGE_FROM_ROOM,


    //room服务
    POST_ROOM_JOIN,
    JUDGED_ROOM_FORM,
    GET_ROOM_FORMS,
    GET_ROOMS_BY_USER,
    GET_ROOMS,

    //文件服务
    SEND_FILE_FROM_ROOM,
    GET_FILES_FROM_ROOM,
    DOWNLOAD_FILE_FROM_ROOM,


    RESPONSE_USER,
    RESPONSE_USERS,
    RESPONSE_USERES_BY_ROOMID,
    RESPONSE_UPDATE_ROOM_MESSAGE,//更新聊天室消息
    RECEIVE_ROOM_MESSAGE,

    YES,
    NO;
}
